package com.qingjiang.projectschedule.utils;

public enum ResultCodeEnum {
    SUCCESS(200,"success",true),
    USERNAME_ERROR(501,"usernameError",false),
    PASSWORD_ERROR(503,"passwordError",false),
    NOTLOGIN(504,"notLogin",false);

    private Integer code;
    private String message;

    private Boolean success;

    ResultCodeEnum(Integer code, String message,Boolean success) {
        this.code = code;
        this.message = message;
        this.success = success;
    }

    public Integer getCode(){
        return code;
    }

    public String getMessage(){
        return message;
    }

    public Boolean getSuccess() { return success; }
}
